<!-- right-->
<div class="MemberMain">
<div>

<form method="post" id="ordermsgForm" action="<{link app=b2c ctl="site_member" act="toadd_order_msg"}>">

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="liststyle data">
<script>
	var button_valiate = function(element_node){
		// el element id.
		var _validate_return = element_node.getElements('[vtype]').every(function(el){
			
				return validate(el);
		  });
	  
		return _validate_return;
	};

	subOrderMsgForm = function (event,sign){
		var odr_form = $('ordermsgForm');
		
		_formActionUrl = odr_form.get('action');
		_return = button_valiate(odr_form);
		
		if (_return)
		{
			new Request(
			{
				url:_formActionUrl,
				method:'post',
				data:odr_form.toQueryString(),
				onComplete:function(){
					window.opener.location.reload();
					window.close();
				}
			}).send();
		}
	};
	</script>
<{if $msgType == 1}>
<tr>
    <td style="text-align:right" width="15%"><div class="title"><{t}>付款金额：<{/t}></div></td>
    <td><{input type="positive" name="msg[paymoney]" vtype='required' maxlength=20 }><{t}>元<{/t}></td>
</tr>
<tr>
    <td style="text-align:right"><div class="title"><{t}>付款方式：<{/t}></div></td>
    <td><{input type="text" name="msg[payments]" vtype='required' maxlength=20 }></td>
</tr>
<tr>
    <td style="text-align:right"><div class="title"><{t}>付款时间：<{/t}></div></td>
    <td><{input type="date" name="msg[paydate][]" vtype='required' maxlength=20 readonly=true }> &nbsp;
    <{input type="select" name="msg[paydate][]" options=$timeHours }>&nbsp;<{t}>时<{/t}> &nbsp;
    <{input type="select" name="msg[paydate][]" options=$timeMins }>&nbsp;<{t}>分<{/t}>
    </td>
</tr>
<tr>
    <td style="text-align:right"><div class="title"><{t}>备注：<{/t}></div></td>
    <td><{input type="textarea" name="msg[message]" rows=3 style="width:40%" }></td>
</tr>
<tr>
    <td style="text-align:right">&nbsp;</td>
    <td><input type="button" onclick="subOrderMsgForm(event,2);" value="<{t}>提交<{/t}>"/>&nbsp;<input type="button"  onclick="if(confirm('<{t}>确定退出?<{/t}>'))window.close();" value="<{t}>取消<{/t}>"/></td>
</tr>
<{else}>
<tr>
    <td style="text-align:right"><div class="title"><{t}>标题：<{/t}></div></td>
    <td><{input type="text" name="msg[subject]" required=true maxlength=20 }></td>
</tr>
<tr>
    <td style="text-align:right"><div class="title"><{t}>内容：<{/t}></div></td>
    <td><{input type="textarea" name="msg[message]" rows=3 style="width:40%" }></td>
</tr>
<tr>
    <td style="text-align:right">&nbsp;</td>
    <td><input type="button" onclick="subOrderMsgForm(event,2);" value="<{t}>提交留言<{/t}>"/></td>
</tr>
<{/if}>
</table>
<input type="hidden" name="msg[orderid]" value="<{$orderId}>"/>
<input type="hidden" name="msg[msgType]" value="<{$msgType}>"/>
</form>

</div>
</div>
<script>
	
</script>
<!-- right-->
